<?php
// pbc-ezmb-contactform (c) PushButtonComputing 2012 
 
// function for handling the contact form
// 
function EZMB_ContactUs32() { 
// 
// get the data from the mobile site
$EZMB_FormId           = $_POST["WPMSGContactFormId"];
$EZMB_ContactName      = $_POST["WPMSG_ContactName"];
$EZMB_ContactTelephone = $_POST["WPMSG_ContactTelephone"];
$EZMB_ContactEmail     = $_POST["WPMSG_ContactEmail"];
$EZMB_ContactMessage   = $_POST["WPMSG_ContactMessage"];
// here is the data from admin panel
$EZMB_ContactEmailTo   = 'manil.ek@gmail.com';
$EZMB_Contact_EmailFromName   = 'Manil';
$EZMB_Contact_EmailFromEmail   =  'manil.ek@gmail.com';
$EZMB_ContactSendAcknowledgement =  'Y';
$EZMB_ContactAckSubject =  'Customer Support';
$EZMB_ContactAckMessage = '';
$EZMB_ContactAck_EmailFromName = 'Manil';
$EZMB_ContactAck_EmailFromEmail = 'manil.ek@gmail.com';
//
// From this point onwards it is standard code
//
// first we send the message itself to the mobile site owner
//
$EZMB_Headers = "From: ".$EZMB_Contact_EmailFromName." <".$EZMB_Contact_EmailFromEmail.">" . "\r\n";
$EZMB_Headers .= "Reply-To: ".$EZMB_Contact_EmailFromEmail. "\r\n";
$EZMB_Headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
//
$EZMB_ContactSubject   = "Contact Form - Name:".$EZMB_ContactName."  Tel:".$EZMB_ContactTelephone."  Email:".$EZMB_ContactEmail;
$EZMB_ContactMessage   .= chr(10); 
$EZMB_ContactMessage   .= chr(10); 
$EZMB_ContactMessage   .= "Name: ".$EZMB_ContactName;
$EZMB_ContactMessage   .= chr(10); 
$EZMB_ContactMessage   .= "Tel: ".$EZMB_ContactTelephone;
$EZMB_ContactMessage   .= chr(10); 
$EZMB_ContactMessage   .= "Email: ".$EZMB_ContactEmail;
$EZMB_ContactMessage   .= chr(10); 
//
$EZMB_ContactMessage = wordwrap($EZMB_ContactMessage,70);
mail( $EZMB_ContactEmailTo, $EZMB_ContactSubject, $EZMB_ContactMessage, $EZMB_Headers ); 
// end of the message itself to the mobile site owner
// send email acknowledgement to the sender of the message
if ($EZMB_ContactSendAcknowledgement == "Y") {
	if (!empty($EZMB_ContactEmail)){
		$EZMB_ContactAckEmailTo = $EZMB_ContactEmail;
		//
		//
		$EZMB_AckHeaders = "From: ".$EZMB_ContactAck_EmailFromName." <".$EZMB_ContactAck_EmailFromEmail.">" . "\r\n";
		$EZMB_AckHeaders .= "Reply-To: ".$EZMB_ContactAck_EmailFromEmail. "\r\n";
		$EZMB_AckHeaders .= "X-Mailer: PHP/" . phpversion() . "\r\n";
		//
       $EZMB_ContactAckMessage = wordwrap($EZMB_ContactAckMessage,70);
		mail( $EZMB_ContactAckEmailTo, $EZMB_ContactAckSubject, $EZMB_ContactAckMessage, $EZMB_AckHeaders );
	}
}
}
// end of function
// call the function
$EZMB_FormId = $_POST["WPMSGContactFormId"];
if ($EZMB_FormId == "32"){
    EZMB_ContactUs32();
}


?><?php
// pbc-ezmb-contactform (c) PushButtonComputing 2012 
 
// function for handling the contact form
// 
function EZMB_ContactUs32() { 
// 
// get the data from the mobile site
$EZMB_FormId           = $_POST["WPMSGContactFormId"];
$EZMB_ContactName      = $_POST["WPMSG_ContactName"];
$EZMB_ContactTelephone = $_POST["WPMSG_ContactTelephone"];
$EZMB_ContactEmail     = $_POST["WPMSG_ContactEmail"];
$EZMB_ContactMessage   = $_POST["WPMSG_ContactMessage"];
// here is the data from admin panel
$EZMB_ContactEmailTo   = 'manil.ek@gmail.com';
$EZMB_Contact_EmailFromName   = 'Manil';
$EZMB_Contact_EmailFromEmail   =  'manil.ek@gmail.com';
$EZMB_ContactSendAcknowledgement =  'Y';
$EZMB_ContactAckSubject =  'Customer Support';
$EZMB_ContactAckMessage = '';
$EZMB_ContactAck_EmailFromName = 'Manil';
$EZMB_ContactAck_EmailFromEmail = 'manil.ek@gmail.com';
//
// From this point onwards it is standard code
//
// first we send the message itself to the mobile site owner
//
$EZMB_Headers = "From: ".$EZMB_Contact_EmailFromName." <".$EZMB_Contact_EmailFromEmail.">" . "\r\n";
$EZMB_Headers .= "Reply-To: ".$EZMB_Contact_EmailFromEmail. "\r\n";
$EZMB_Headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
//
$EZMB_ContactSubject   = "Contact Form - Name:".$EZMB_ContactName."  Tel:".$EZMB_ContactTelephone."  Email:".$EZMB_ContactEmail;
$EZMB_ContactMessage   .= chr(10); 
$EZMB_ContactMessage   .= chr(10); 
$EZMB_ContactMessage   .= "Name: ".$EZMB_ContactName;
$EZMB_ContactMessage   .= chr(10); 
$EZMB_ContactMessage   .= "Tel: ".$EZMB_ContactTelephone;
$EZMB_ContactMessage   .= chr(10); 
$EZMB_ContactMessage   .= "Email: ".$EZMB_ContactEmail;
$EZMB_ContactMessage   .= chr(10); 
//
$EZMB_ContactMessage = wordwrap($EZMB_ContactMessage,70);
mail( $EZMB_ContactEmailTo, $EZMB_ContactSubject, $EZMB_ContactMessage, $EZMB_Headers ); 
// end of the message itself to the mobile site owner
// send email acknowledgement to the sender of the message
if ($EZMB_ContactSendAcknowledgement == "Y") {
	if (!empty($EZMB_ContactEmail)){
		$EZMB_ContactAckEmailTo = $EZMB_ContactEmail;
		//
		//
		$EZMB_AckHeaders = "From: ".$EZMB_ContactAck_EmailFromName." <".$EZMB_ContactAck_EmailFromEmail.">" . "\r\n";
		$EZMB_AckHeaders .= "Reply-To: ".$EZMB_ContactAck_EmailFromEmail. "\r\n";
		$EZMB_AckHeaders .= "X-Mailer: PHP/" . phpversion() . "\r\n";
		//
       $EZMB_ContactAckMessage = wordwrap($EZMB_ContactAckMessage,70);
		mail( $EZMB_ContactAckEmailTo, $EZMB_ContactAckSubject, $EZMB_ContactAckMessage, $EZMB_AckHeaders );
	}
}
}
// end of function
// call the function
$EZMB_FormId = $_POST["WPMSGContactFormId"];
if ($EZMB_FormId == "32"){
    EZMB_ContactUs32();
}


?>